namespace MesBSW.DAL.RoleDB
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("base_user")]
    public partial class BaseUserModel
    {
        [Key]
        [Column(Order = 0)]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }

        [Key]
        [Column(Order = 1)]
        [StringLength(30)]
        public string user_name { get; set; }

        [Column(Order = 2)]
        [StringLength(30)]
        public string pwd { get; set; }

        [StringLength(30)]
        public string real_name { get; set; }

        public int? base_dept_id { get; set; }

        public bool? sex { get; set; }

        [StringLength(50)]
        public string email { get; set; }

        [StringLength(20)]
        public string phone { get; set; }

        public bool? is_del { get; set; }

        [StringLength(100)]
        public string des { get; set; }

        [StringLength(20)]
        public string create_user { get; set; }

        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public DateTime? create_date { get; set; }
    }
}
